package com.trxy.mapper;

import com.trxy.model.Product;
import com.trxy.model.ProductExample;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface ProductMapper {

    List<Product> selectByExample(ProductExample example);

    List<Product> selectAll();

    Product selectByPrimarykey(int id);

    int add(Product product);

    int edit(Product product);

    int del(int id);
}